﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LanguageDetector.TrainerConsole
{
    internal class ConsoleBuilder
    {
        StringBuilder _builder = new StringBuilder();

        public void Append(string s, params object[] oarr)
        {
            _builder.AppendFormat(s, oarr);
            Console.Write(s, oarr);
        }

        public void AppendLine(string s, params object[] oarr)
        {
            Append(s + "\r\n", oarr);
        }

        public override string ToString()
        {
            return _builder.ToString();
        }

        public int Length
        {
            get { return _builder.Length; }
        }
    }
}
